<template>
  <div class="content" style="font-size: 20px">
    <t-cell-group s>
      <t-cell title="仓库" @click="navigateTo('wlck')" />
      <t-cell title="物料申请购买" @click="navigateTo('buy')" />
    </t-cell-group>
  </div>
  <div class="bottom-fixed-button">
    <el-button type="primary" style="width: 90%; " @click="returnToTechnician">返回菜单</el-button>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
import {ElButton} from "element-plus";

const router = useRouter()

const handleBack = () => {
  router.back()
}

const returnToTechnician = () =>{
  router.push('/technician/home')
}
const navigateTo = (page: string) => {
  router.push(`/technician/warehouse/${page}`)
}
</script>

<style scoped>
.technician-view {
  height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  background-color: white;
}

.content {
  flex: 1;
  padding: 20px;
}
.bottom-fixed-button {
  height: 50px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding-bottom: 10px;
}
</style>
